package xyz.heyaoshare.core.mapper.system;

import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xyz.heyaoshare.core.entity.system.Menu;

import java.util.List;

/**
 * 菜单 Mapper
 * @author YueHe
 * @version 0.0.1
 * @since 2025/6/25 下午1:52
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据用户ID查询菜单列表
     * @param userId 用户ID
     * @return 菜单列表
     */
    List<Menu> selectListByUserId(@Param("userId") Long userId);

}